#import "MBProgressHUD.h"
@interface MBProgressHUD (Add)
/**显示成功提示到window*/
+ (MBProgressHUD*)showSuccess:(NSString *)success;
/**显示失败提示到window*/
+ (MBProgressHUD*)showError:(NSString *)error;
/**显示提醒提示到window*/
+ (MBProgressHUD*)showInfo:(NSString *)info;
/**显示文本提示到指定的window*/
+ (MBProgressHUD*)showtext:(NSString *)text;
/**显示正在加载(菊花样式)提示到window*/
+ (MBProgressHUD*)showDefaultLoadingMessage:(NSString *)text;
/**显示自定义加载样式到window*/
+ (MBProgressHUD*)showCustomLoadingMessage:(NSString *)text;
/**显示成功提示到指定的view*/
+ (MBProgressHUD*)showSuccess:(NSString *)success toView:(UIView *)view;
/**显示成功提示到指定的view*/
+ (MBProgressHUD*)showError:(NSString *)error toView:(UIView *)view;

/**显示正在加载(菊花样式)提示到指定的view*/
+ (MBProgressHUD*)showDefaultLoadingMessage:(NSString *)text toView:(UIView *)view;
/**显示进度条提示到window*/
+(MBProgressHUD*)showProgress:(NSString*)text;

+ (MBProgressHUD *)showMessage:(NSString *)text view:(UIView *)view;
+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;

+(void)dismiss;

@end
